package com.fortune.constants.enums;

import java.io.File;

/**
 * 上传文件存储和访问路径
 * @author ran
 *
 */
public enum FilePaths {
	/**
	 * 频道封面图和列表图
	 */
	COMPANYLOG("logurl");

	private String path;
	private FilePaths(String path) {
		this.path = path;
	}
	public String getPath() {
		return path;
	}
	
	public static void main(String[] args) {
		FilePaths[] paths = FilePaths.values();
		for (int i = 0; i < paths.length; i++) {
			File file = new File("D:\\tomcatDoc\\"+paths[i].getPath());
			if (file.isDirectory()) {
				continue;
			}
			file.mkdir();
		}
	}
}
